package com.guoguo.mapper;

import com.guoguo.entity.TaskInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 任务接口
 *
 * @author Qiang.Zhang
 */
public interface TaskInfoMapper {

    /**
     * 批量查询
     *
     * @param param
     * @return
     */
    public List<TaskInfo> getTaskInfoList(Map<String, Object> param);

    /**
     * 单条查询
     *
     * @param taskInfo
     * @return
     */
    public TaskInfo findTaskInfo(TaskInfo taskInfo);

    /**
     * 添加
     *
     * @param taskInfo
     * @return
     */
    public int saveTaskInfo(TaskInfo taskInfo);

    /**
     * 修改
     *
     * @param taskInfo
     * @return
     */
    public int updateTaskInfo(TaskInfo taskInfo);

    /**
     * 批量修改
     *
     * @param param
     * @return
     */
    public int updateBatch(Map<String, Object> param);

    /**
     * 删除
     *
     * @param taskInfo
     * @return
     */
    public int removeTaskInfo(TaskInfo taskInfo);

}
